<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="AS3Paintoco,jp.wxd.as3paintoco.AS3Paintoco,DEFAULT_FILE_NAME,_canvas,_canvasCore,_height,_isActive,_replayQueue,_replayable,_width,background,canvas,color,height,isActive,replayable,width,_replayQueue_completeHandler,activate,activateCanvasCoreListener,addHistory,applyTool,createBackground,deactivate,deactivateCanvasCoreListener,initialize,redo,replay,save,undo" name="keywords">
<title>jp.wxd.as3paintoco.AS3Paintoco</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'AS3Paintoco - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?jp/wxd/as3paintoco/AS3Paintoco.html&amp;jp/wxd/as3paintoco/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;AS3Paintoco</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class AS3Paintoco"); titleBar_setSubNav(true,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">jp.wxd.as3paintoco</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class AS3Paintoco</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">AS3Paintoco <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
  <p>AS3Paintocoはぺいんとこを利用する際に、インスタンス化するクラスです。</p>
  <code>
  <pre>
  // create AS3Paintoco
  var paint:AS3Paintoco = new AS3Paintoco(container, 465, 465);
  paint.applyTool(new PenTool());
  paint.activate();
  </pre>
  </code>
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#background">background</a> : DisplayObject<div class="summaryTableDescription">
   <p>キャンバスの背景を表すDisplayObjectインスタンスを設定または取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#canvas">canvas</a> : <a href="display/Canvas.html">Canvas</a>
<div class="summaryTableDescription">[read-only]
   <p>キャンバスを取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#color">color</a> : uint<div class="summaryTableDescription">
   <p>キャンバスの色を設定または取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#height">height</a> : Number<div class="summaryTableDescription">[read-only]
   <p>キャンバスの高さを取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#isActive">isActive</a> : Boolean<div class="summaryTableDescription">[read-only]
   <p>アクティブ状態を取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#replayable">replayable</a> : Boolean<div class="summaryTableDescription">
   <p>リプレイ可否を設定、取得します。初期状態はリプレイ機能はOFFです。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#width">width</a> : Number<div class="summaryTableDescription">[read-only]
   <p>キャンバスの幅を取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_canvas">_canvas</a> : <a href="display/Canvas.html">Canvas</a>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_canvasCore">_canvasCore</a> : <a href="core/CanvasCore.html">CanvasCore</a>
<div class="summaryTableDescription">
   CanvasCore instance
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_height">_height</a> : Number<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_isActive">_isActive</a> : Boolean<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_replayable">_replayable</a> : Boolean<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_replayQueue">_replayQueue</a> : <a href="command/ReplayQueue.html">ReplayQueue</a>
<div class="summaryTableDescription">
   Replay commands
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_width">_width</a> : Number<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#AS3Paintoco()">AS3Paintoco</a>(container:DisplayObjectContainer, width:Number, height:Number)</div>
<div class="summaryTableDescription">
   <p>AS3Paintocoクラスは、as3paintocoを使用する際にインスタンス化するクラスです。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#activate()">activate</a>():void</div>
<div class="summaryTableDescription">
   <p>キャンバスをアクティブにし、ユーザーイベントを受け付けます。ユーザは画を描くことが出来ます。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addHistory()">addHistory</a>(method:Function, params:Array = null):void</div>
<div class="summaryTableDescription">
   <p>リプレイ対象とする処理を履歴へ追加します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#applyTool()">applyTool</a>(tool:<a href="tools/ITool.html">ITool</a>):void</div>
<div class="summaryTableDescription">
   <p>IToolを適用します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#deactivate()">deactivate</a>():void</div>
<div class="summaryTableDescription">
   <p>キャンバスを非アクティブにし、ユーザーイベントを受け付けを中止します。ユーザは画を描くことが出来ません。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#initialize()">initialize</a>(width:Number = 0, height:Number = 0):void</div>
<div class="summaryTableDescription">
   <p>キャンバスを初期化する際に利用します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#redo()">redo</a>():void</div>
<div class="summaryTableDescription">
   <p>直前の処理をやり直します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#replay()">replay</a>(speed:Number):void</div>
<div class="summaryTableDescription">
   <p>いままでの操作をリプレイします。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#save()">save</a>(fileName:String, mode:String = "png", quality:Number = 80):void</div>
<div class="summaryTableDescription">
   <p>キャンバスをローカルファイルシステムにファイルを保存するためのダイアログボックスを開きます。</p>
   <p>ファイルの形式はPNG、またはJPEG形式です。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#undo()">undo</a>():void</div>
<div class="summaryTableDescription">
   <p>直前の処理を取り消します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
</table>
</div>
<a name="protectedMethodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Methods</div>
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#_replayQueue_completeHandler()">_replayQueue_completeHandler</a>(event:Event):void</div>
<div class="summaryTableDescription">
   handler of Event.COMPLETE
    dispatched from _replayQueue
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#activateCanvasCoreListener()">activateCanvasCoreListener</a>():void</div>
<div class="summaryTableDescription">
   activate canvas event listener
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#createBackground()">createBackground</a>():void</div>
<div class="summaryTableDescription">
   create background by _color properties
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#deactivateCanvasCoreListener()">deactivateCanvasCoreListener</a>():void</div>
<div class="summaryTableDescription">
   deactivate canvas event listener
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:endReplay">endReplay</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  <p>Replay終了時、終了時に送出されるイベントです</p>
  <p></p>
  
  </td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:startReplay">startReplay</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  <p>Replay開始時、終了時に送出されるイベントです</p>
  <p></p>
  
  </td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DEFAULT_FILE_NAME">DEFAULT_FILE_NAME</a> : String = "as3paintoco"<div class="summaryTableDescription">[static]
   <p>save()メソッドのデフォルトファイル名を取得します。</p>
   </div>
</td><td class="summaryTableOwnerCol">AS3Paintoco</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="background"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">background</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>background:DisplayObject</code>&nbsp;&nbsp;[read-write]<p>
   </p><p>キャンバスの背景を表すDisplayObjectインスタンスを設定または取得します。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get background():DisplayObject</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set background(value:DisplayObject):void</code>
<br>
</div>
<a name="_canvas"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_canvas</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _canvas:<a href="display/Canvas.html">Canvas</a></code>
</div>
<a name="canvas"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">canvas</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>canvas:<a href="display/Canvas.html">Canvas</a></code>&nbsp;&nbsp;[read-only]<p>
   </p><p>キャンバスを取得します。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get canvas():<a href="display/Canvas.html">Canvas</a></code>
<br>
</div>
<a name="_canvasCore"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_canvasCore</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _canvasCore:<a href="core/CanvasCore.html">CanvasCore</a></code><p>
   CanvasCore instance
   </p></div>
<a name="color"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">color</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>color:uint</code>&nbsp;&nbsp;[read-write]<p>
   </p><p>キャンバスの色を設定または取得します。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get color():uint</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set color(value:uint):void</code>
<br>
</div>
<a name="_height"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_height</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _height:Number</code>
</div>
<a name="height"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">height</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>height:Number</code>&nbsp;&nbsp;[read-only]<p>
   </p><p>キャンバスの高さを取得します。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get height():Number</code>
<br>
</div>
<a name="_isActive"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_isActive</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _isActive:Boolean</code>
</div>
<a name="isActive"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isActive</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>isActive:Boolean</code>&nbsp;&nbsp;[read-only]<p>
   </p><p>アクティブ状態を取得します。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get isActive():Boolean</code>
<br>
</div>
<a name="_replayable"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_replayable</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _replayable:Boolean</code>
</div>
<a name="replayable"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">replayable</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>replayable:Boolean</code>&nbsp;&nbsp;[read-write]<p>
   </p><p>リプレイ可否を設定、取得します。初期状態はリプレイ機能はOFFです。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get replayable():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set replayable(value:Boolean):void</code>
<br>
</div>
<a name="_replayQueue"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_replayQueue</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _replayQueue:<a href="command/ReplayQueue.html">ReplayQueue</a></code><p>
   Replay commands
   </p></div>
<a name="_width"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_width</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _width:Number</code>
</div>
<a name="width"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">width</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>width:Number</code>&nbsp;&nbsp;[read-only]<p>
   </p><p>キャンバスの幅を取得します。</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get width():Number</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="AS3Paintoco()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">AS3Paintoco</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function AS3Paintoco(container:DisplayObjectContainer, width:Number, height:Number)</code><p>
   </p><p>AS3Paintocoクラスは、as3paintocoを使用する際にインスタンス化するクラスです。</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">container</span>:DisplayObjectContainer</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">width</span>:Number</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">height</span>:Number</code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="_replayQueue_completeHandler()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_replayQueue_completeHandler</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>protected function _replayQueue_completeHandler(event:Event):void</code><p>
   handler of Event.COMPLETE
    dispatched from _replayQueue
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">event</span>:Event</code></td>
</tr>
</table>
</div>
<a name="activate()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">activate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function activate():void</code><p>
   </p><p>キャンバスをアクティブにし、ユーザーイベントを受け付けます。ユーザは画を描くことが出来ます。</p>
   </div>
<a name="activateCanvasCoreListener()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">activateCanvasCoreListener</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function activateCanvasCoreListener():void</code><p>
   activate canvas event listener
   </p></div>
<a name="addHistory()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addHistory</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function addHistory(method:Function, params:Array = null):void</code><p>
   </p><p>リプレイ対象とする処理を履歴へ追加します。</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">method</span>:Function</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">params</span>:Array</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="applyTool()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">applyTool</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function applyTool(tool:<a href="tools/ITool.html">ITool</a>):void</code><p>
   </p><p>IToolを適用します。</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">tool</span>:<a href="tools/ITool.html">ITool</a></code></td>
</tr>
</table>
</div>
<a name="createBackground()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">createBackground</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function createBackground():void</code><p>
   create background by _color properties
   </p></div>
<a name="deactivate()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">deactivate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function deactivate():void</code><p>
   </p><p>キャンバスを非アクティブにし、ユーザーイベントを受け付けを中止します。ユーザは画を描くことが出来ません。</p>
   </div>
<a name="deactivateCanvasCoreListener()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">deactivateCanvasCoreListener</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function deactivateCanvasCoreListener():void</code><p>
   deactivate canvas event listener
   </p></div>
<a name="initialize()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">initialize</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function initialize(width:Number = 0, height:Number = 0):void</code><p>
   </p><p>キャンバスを初期化する際に利用します。</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">width</span>:Number</code> (default = <code>0</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">height</span>:Number</code> (default = <code>0</code>)<code></code></td>
</tr>
</table>
</div>
<a name="redo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">redo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function redo():void</code><p>
   </p><p>直前の処理をやり直します。</p>
   </div>
<a name="replay()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">replay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function replay(speed:Number):void</code><p>
   </p><p>いままでの操作をリプレイします。</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">speed</span>:Number</code></td>
</tr>
</table>
</div>
<a name="save()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">save</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function save(fileName:String, mode:String = "png", quality:Number = 80):void</code><p>
   </p><p>キャンバスをローカルファイルシステムにファイルを保存するためのダイアログボックスを開きます。</p>
   <p>ファイルの形式はPNG、またはJPEG形式です。</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">fileName</span>:String</code> &mdash; 保存時の初期ファイル名を指定します。
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">mode</span>:String</code> (default = "<code>png</code>")<code></code> &mdash; PNG形式で保存したい場合は、pngを指定します。JPEG形式で保存したい場合は、jpgもしくはjpegと指定します。
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">quality</span>:Number</code> (default = <code>80</code>)<code></code> &mdash; modeをjpgした際に使用されるJPEG画像の画質を0.0～1.0で指定します。modeをpngに指定した場合は無視されます。
   </td>
</tr>
</table>
</div>
<a name="undo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">undo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function undo():void</code><p>
   </p><p>直前の処理を取り消します。</p>
   </div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:endReplay"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">endReplay</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="events/DrawingEvent.html"><code>jp.wxd.as3paintoco.events.DrawingEvent</code></a>
<br>
<p></p><p>
  </p><p>Replay終了時、終了時に送出されるイベントです</p>
  <p></p>
  
  </div>
<a name="event:startReplay"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">startReplay</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="events/DrawingEvent.html"><code>jp.wxd.as3paintoco.events.DrawingEvent</code></a>
<br>
<p></p><p>
  </p><p>Replay開始時、終了時に送出されるイベントです</p>
  <p></p>
  
  </div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="DEFAULT_FILE_NAME"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DEFAULT_FILE_NAME</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const DEFAULT_FILE_NAME:String = "as3paintoco"</code><p>
   </p><p>save()メソッドのデフォルトファイル名を取得します。</p>
   <p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../as3paintoco/AS3Paintoco.html#save()" target="">save()</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
